package com.woniuxy.dao;

import com.woniuxy.controller.info.DefectSeverityIdAndNameInfo;
import com.woniuxy.model.Defectpriority;
import com.woniuxy.model.Defectseverity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
public interface DefectseverityDao extends BaseMapper<Defectseverity> {

    @Select("SELECT defectSeverity_id,defectSeverity_name FROM t_defectseverity WHERE defectSeverity_state=1")
    List<DefectSeverityIdAndNameInfo> selectIdAndName();
    @Select("SELECT * FROM t_defectseverity where  defectSeverity_delect=0 ORDER BY defectSeverity_num")
    List<Defectseverity> selectAll();
}
